﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class MainWindow
    {
         
        public MainWindow()
        {
            
            DataContext =new ViewModelBase();
            InitializeComponent(); 
            this.Name = "穿筘"; 
        }
        ViewBase ui;
        public override void OnWorkflowIDChange(string wfid)
        {
            base.OnWorkflowIDChange(wfid);
            switch (wfid)
            {
                case "WT06":
                    MainTab.Children.Clear();
                    ui = new TWTEINZ();
                    MainTab.Children.Add(ui);
                    break;
                case "SWT06":
                    MainTab.Children.Clear();
                    ui = new TWT06();
                    MainTab.Children.Add(ui);
                    break;
            }  
        }
        
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            
        }

    }
}
